def main():
    s = int(input())
    for i in range(9):
        a = int(input())
        if a >= s:
            s = a
    print(s)


main()
